package cn.hahah.module.blog.controller.admin.usercode.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 博客系统用户验证码新增/修改 Request VO")
@Data
public class UserCodeSaveReqVO {

    @Schema(description = "验证码编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "9247")
    private Long id;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "12296")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @Schema(description = "验证码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "验证码不能为空")
    private String code;

}